<div id="tab-system" class="HuiTab">
	<div class="tabBar cl">
		<span onclick="HtmlRender('${BASE}/admin/cms/gymnasium/recommendlist')">所有待推荐场馆</span>
		<span class="current">球馆详情</span>
	</div>
	<br>
</div>
<div class="row cl">
  <form action="${BASE}/admin/cms/gymnasium/editSave" id="form_save" method="post" class="form form-horizontal">
  <input type="hidden" name="id" value="${obj.id}">
  <input type="hidden" id="recommend" name="recommend" value="">
    <div class="col-xs-11">
      <div class="row cl">
        <label class="form-label col-xs-3">场馆名称：</label>
        <div class="formControls col-xs-6">
          <input type="text" id="name" name="name" value="${obj.name}"   disabled="disabled" class="input-text">
        </div>
        <div class="col-xs-3"> </div>
      </div>
      
      <div class="row cl">
        <label class="form-label col-xs-3">所在区域：</label>
        <div class="formControls col-xs-6">
          <input type="text" id="areaName" name="areaName" value="${obj.areaName}"   disabled="disabled" class="input-text">
        </div>
         <div class="col-xs-3"> </div>
      </div>
        
        <div class="row cl">
        <label class="form-label col-xs-3">场馆简介：</label>
        <div class="formControls col-xs-6">
          <textarea disabled="disabled" id="summary" name="summary" cols="" rows="" class="textarea"  placeholder="角色描述...200个字符以内" dragonfly="true" onKeyUp="textarealength(this,200)">${obj.summary}</textarea>
          <p class="textarea-numberbar"><em class="textarea-length">0</em>/200</p>
        </div>
        <div class="col-xs-3"> </div>
      </div>
        
      <div class="row cl">
        <label class="form-label col-xs-3">场馆公告：</label>
        <div class="formControls col-xs-6">
          <textarea disabled="disabled" id="notice" name="notice" cols="" rows="" class="textarea"  placeholder="角色描述...200个字符以内" dragonfly="true" onKeyUp="textarealength(this,200)">${obj.notice}</textarea>
          <p class="textarea-numberbar"><em class="textarea-length">0</em>/200</p>
        </div>
        <div class="col-xs-3"> </div>
      </div>
      
      <div class="row cl">
        <label class="form-label col-xs-3">联系人电话：</label>
        <div class="formControls col-xs-6">
          <input type="text" id="linkerPhone" name="linkerPhone" value="${obj.linkerPhone}"   disabled="disabled" class="input-text">
        </div>
         <div class="col-xs-3"> </div>
      </div>
      
      <div class="row cl">
        <label class="form-label col-xs-3">联系人姓名：</label>
        <div class="formControls col-xs-6">
          <input type="text" id="linkerName" name="linkerName" value="${obj.linkerName}"   disabled="disabled" class="input-text">
        </div>
         <div class="col-xs-3"> </div>
      </div>
      
      <div class="row cl">
        <label class="form-label col-xs-3">交通方式：</label>
        <div class="formControls col-xs-6">
          <textarea id="traffic" name="traffic" cols="" rows="" class="textarea"  disabled="disabled" >${obj.traffic}</textarea>
          <p class="textarea-numberbar"><em class="textarea-length">0</em>/200</p>
        </div>
        <div class="col-xs-3"> </div>
      </div>
      
       <div class="row cl">
        <label class="form-label col-xs-3">详细地址：</label>
        <div class="formControls col-xs-6">
          <textarea id="address" name="address" cols="" rows="" class="textarea"  disabled="disabled" >${obj.address}</textarea>
          <p class="textarea-numberbar"><em class="textarea-length">0</em>/200</p>
        </div>
        <div class="col-xs-3"> </div>
      </div>
      
       <div class="row cl">
        <label class="form-label col-xs-3">营业时间：</label>
        <div class="formControls col-xs-6">
          <textarea id="shopTime" name="shopTime" cols="" rows="" class="textarea"  disabled="disabled" >${obj.shopTime}</textarea>
          <p class="textarea-numberbar"><em class="textarea-length">0</em>/200</p>
        </div>
        <div class="col-xs-3"> </div>
      </div>
      
       <div class="row cl">
        <label class="form-label col-xs-3">场馆特色：</label>
        <div class="formControls col-xs-6">
          <textarea id="characteristic" name="characteristic" cols="" rows="" class="textarea"  disabled="disabled" >${obj.shopTime}</textarea>
          <p class="textarea-numberbar"><em class="textarea-length">0</em>/200</p>
        </div>
        <div class="col-xs-3"> </div>
      </div>
      
      <div class="row cl">
        <label class="form-label col-xs-3">预定场馆的说明：</label>
        <div class="formControls col-xs-6">
          <textarea id="booknote" name="booknote" cols="" rows="" class="textarea"  disabled="disabled" >${obj.booknote}</textarea>
          <p class="textarea-numberbar"><em class="textarea-length">0</em>/200</p>
        </div>
        <div class="col-xs-3"> </div>
      </div>
      
      <div class="row cl">
        <label class="form-label col-xs-3">场地的个数：</label>
        <div class="formControls col-xs-6">
          <input type="text" id="fieldcount" name="fieldcount" value="${obj.fieldcount}"   disabled="disabled" class="input-text">
        </div>
         <div class="col-xs-3"> </div>
      </div>
      
       <div class="row cl">
        <label class="form-label col-xs-3">推荐理由：</label>
        <div class="formControls col-xs-6">
          <textarea id="recommendedreason" name="recommendedreason" cols="" rows="" class="textarea"   ></textarea>
          <p class="textarea-numberbar"><em class="textarea-length">0</em>/200</p>
        </div>
        <div class="col-xs-3"> </div>
      </div>
      
      <div class="row cl">
        <div class="col-xs-10 col-xs-offset-2">
          <input class="btn btn-primary radius" id="yesbutton" type="button" onclick="agree()" value="&nbsp;&nbsp;推荐通过&nbsp;&nbsp;">
        </div>
      </div>
      
    </div>
    
    <div class="col-xs-1">&nbsp;</div>
  </form>
</div>

<script type="text/javascript">
function agree(){
	$('#recommend').val(2);
	var aa=$('#recommendedreason').val();
	if(aa==null||aa==""){
		alert("推荐理由不能为空");
	}else{
	$('#form_save').submit();
	}
}



$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	$("#form_save").Validform({
		tiptype:2,
		ajaxPost:true,
		postonce:true,
		callback:function(data){
			$.Hidemsg();
			if("200"==data.retCode){
				layer.msg('推荐成功！', {icon: 6,offset: '45px'});
				HtmlRender("${BASE}/admin/cms/gymnasium/recommendlist");
			}else{
				layer.msg('推荐失败！', {icon: 5,offset: '45px'});
			}
		}
	});
});
</script>